//服务
(function($){
    $(function(){
        var resizePage = (function () {
            $("body , .physics-page").height($(window).height());
            var ww = $(window).width(),
                wh = $("body").innerHeight(),
                footerH = $(".table-footer").outerHeight(true),
                ulHeaderH = $(".ul_head").outerHeight(true),
                $ulBody = $(".ul_body");

            $ulBody.height(wh - footerH - ulHeaderH);
            return arguments.callee;
        })();

        $(window).resize(resizePage);
        
        var top = window.parent.parent;
        
        $(".table")
        	//查看物理机详情
        	.on("click",".user-name",function(){
        		top.$.popShow("pages/resourceView/physics_detail.html");
        	})

		//添加滚动条
		$(".ul_body").niceScroll({
            cursorcolor:"#0099ff",
            autohidemode:false
        });
    })
})(jQuery)

